<p>
  <label for="topic_title"><%= 'Title'[:title_title] %></label><br />
  <%= form.text_field :title, :onchange => "/*TopicForm.editNewTitle(this);*/", :class => "primary", :tabindex => 10 %>
  <% if admin? or current_user.moderator_of?(@topic.forum) %>
    <label style="margin-left:1em;">
      <%= form.check_box :sticky %> <%= 'Sticky'[:sticky_title] %>
    </label>

    <label style="margin-left:1em;">
      <%= form.check_box :locked %> <%= 'Locked'[:locked_title] %>
    </label>
  <% end %>
</p>

<% if @topic.new_record? %>
  <div>
    <div class="left" style="float:left;width:70%;">
      <label for="topic_body"><%= 'Body'[:body_title] %></label><br />
      <%= form.text_area :body, :rows => 12, :tabindex => 20 %>
    </div>
    <div style="float:right;">
      <%= render :partial=>"posts/formatting_help" -%>
    </div>
  </div>
  <div style="clear:both;"></div>
<% end %>


<% if admin? and not @topic.new_record? %>
  <p id="topic_forum_id">
    <label for="topic_forum_id"><%= 'Forum'[:forum_title] %></label><br />
    <%= form.select :forum_id, Forum.find(:all, :order => "position").map {|x| [x.name, x.id] } %>
  </p>
<% end %>